#ifndef LOG_STREAM_H
#define LOG_STREAM_H

// Remove warning about 'this' use in initiator list - pointer is only stored
#if defined(WIN32) && !defined(__GNUC__)
#pragma warning( disable : 4355 ) // using this in base member initializer list 
#endif

#include "log_buf.h"

namespace vpm
{
	namespace log 
	{

		class LogStream :private LogBuf, public std::ostream
		{
		public:
			LogStream(int loggerType):LogBuf(loggerType),std::ostream(this)
			{

			}

			virtual ~LogStream()
			{
			}

		private:

			LogStream(const LogStream& );
			LogStream& operator=(const LogStream&);	
		};
	}
}
#endif // 

